package controller;
import entity.User;
import service.impl.UserServiceImpl;

public class UserController {
	UserServiceImpl usi = new UserServiceImpl();
	
	public boolean save(User user) {
		return usi.save(user);
	}

	public boolean delete(User user) {
		return usi.delete(user);
	}

	public boolean update(User user) {
		return usi.update(user);
	}

	public User selectById(int id) {
		return usi.selectById(id);
	}

	public User[] selectAll() {
		return usi.selectAll();
	}

	public boolean login(User user) {
		return usi.login(user);
	}

	public boolean regsit(User user) {
		return usi.regsit(user);
	}

	public boolean deposit(double money) {
		return usi.deposit(money);
	}

	public boolean withdrawals(double money) {
		return usi.withdrawals(money);
	}

	public boolean transfer(double money, int id) {
		return usi.transfer(money, id);
	}

	public User selectInformation() {
		return usi.selectInformation();
	}
}
